home *** CD-ROM | disk | FTP | other *** search
/ The Trig Explorer / The Trig Explorer.iso / mac / Explorer / plot.dxr / 00131.ls < prev    next >
Encoding:
Text File  |  2000-08-01  |  631 b   |  19 lines

  1. on exitFrame
  2.   global Voice
  3.   set the trails of sprite 19 to 1
  4.   set the trails of sprite 20 to 1
  5.   set x0 to the locH of sprite 15
  6.   set y0 to the locV of sprite 15
  7.   repeat with n = 0 to 120
  8.     set the locH of sprite 19 to (2.39999999999999991 * n) + x0
  9.     set the locH of sprite 20 to (2.39999999999999991 * n) + x0
  10.     set the locV of sprite 19 to y0 - (50.0 * float(sin(float(n * 3.0 * PI / 180.0))))
  11.     set the locV of sprite 20 to y0 - (50.0 * float(sin(float(((n * 3.0) + 90.0) * PI / 180.0))))
  12.     updateStage()
  13.   end repeat
  14.   set the trails of sprite 19 to 0
  15.   if Voice then
  16.     puppetSound("Plot9a.aif")
  17.   end if
  18. end
  19.